package main

import (
	"fmt"
	"ginim/router"
	"ginim/utils"
	"github.com/spf13/viper"
)

func main() {
	utils.InitConfig()
	utils.InitMySQL()
	utils.InitRedis()

	app := router.Router()
	err := app.Run(viper.GetString("server.addr"))
	if err != nil {
		fmt.Println("ops")
	}
}
